package com.csii.activiti.server.core.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;
@Data
@ApiModel("流程详情")
public class ActFlowDetail {
    @ApiModelProperty("任务ID")
    private String taskId;
    @ApiModelProperty("表单定义数据")
    private Map<String, Object> form;
    @ApiModelProperty("表单组件权限设置")
    private List<ActFlowFormContentSetting> formPermissionSettings;
    @ApiModelProperty("表单数据")
    private Map<String, Object> formData;
    @ApiModelProperty("历史审批")
    private List<ActFlowHistoryNode> historyNode;
    @ApiModelProperty("动作配置信息")
    private List<ActFlowActionSetting> actionSetting;
    @ApiModelProperty(value = "流程状态=通过(pass)拒绝(refuse)审批中(approve)")
    private String status;
    @ApiModelProperty("是否需要数字签名")
    private boolean digitalSignature;
    @ApiModelProperty("表单url")
    private String iframeUrl;
    @ApiModelProperty("流程发起人")
    private String initiator;
    @ApiModelProperty("流程发起时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty("流程名称")
    private String flowName;
    @ApiModelProperty("流程部署ID")
    private String deploymentId;
    @ApiModelProperty("流程key")
    private String flowKey;
    @ApiModelProperty("是否有历史记录")
    private Boolean hasHistoryRecord;
    @ApiModelProperty("流程实列ID")
    private String processInstanceId;
}
